const path = require('path');
const webpack = require('webpack');
const webpackConfig = {
    entry: {
        app: './src/app.js'
    },
    output: {
        path: path.resolve(__dirname, './dist'),
        filename: '[name].bundle.js',
        publicPath: ''
    },
    // mudule: {
    //     rules: [{

    //     }]
    // },
    resolve: {
        alias: {
            // storages$: path.resolve(__dirname, './bower_components/storages/storages-1.2.2.js'),
            jquery$: path.resolve(__dirname, './bower_components/jquery/dist/jquery.min.js')
        }
    },
    plugins: [
        new webpack.ProvidePlugin({
            // "window.storages": 'storages',
            jquery: 'jquery',
            $: 'jquery'
        })
    ]
};
module.exports = webpackConfig;